package com.ruoyi.hotel.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruoyi.hotel.domain.HomeStay;
import com.ruoyi.hotel.domain.from.HomeStayFrom;
import com.ruoyi.hotel.domain.vo.HomeStayVo;


import java.util.List;

public interface HomeStayService {

    /***
     *
     * 保存
     *
     * @return
     * @param homeStayFrom
     */
    Boolean save(HomeStayFrom homeStayFrom);

    /***
     * 修改
     *
     * @return
     */
    Boolean update(HomeStayFrom homeStayFrom);

    /***
     * 删除
     *
     * @return
     */
    Boolean deleteById(Long id);

    /***
     * 删除
     *
     * @return
     */
    Boolean deleteByIds(List<Long> ids);

    /**
     * 查询列表
     *
     * @param query
     * @return
     */
    List<HomeStayVo> selectList(HomeStay query);

    /***
     * 分页查询
     *
     * @param query
     * @return
     */
    IPage<HomeStayVo> selectPage(HomeStay query);

    /***
     * id查询
     *
     * @param id
     * @return
     */
    HomeStayVo selectById(Long id);

}
